//
//  WeChatDataTool.m
//  JiaoX
//
//  Created by jiaoxiu－005 on 15/1/22.
//  Copyright (c) 2015年 北京娇羞科技有限公司. All rights reserved.
//

#import "WeChatDataTool.h"
@implementation WeChatDataTool

+(void)getWXToken:(NSDictionary *)param success:(void (^)(WeChatLoginRes *))success failure:(void (^)(NSError *))failure
{
    [self postWithUrl:kWxAccessTokenUrl param:param resultClass:[WeChatLoginRes class] success:success failure:failure];
}

+(void)getUserinfo:(NSDictionary *)param success:(void (^)(WeChatUserinfoRes *))success failure:(void (^)(NSError *))failure
{
     [self postWithUrl:kWxUserInfoUrl param:param resultClass:[WeChatUserinfoRes class] success:success failure:failure];
}

+(void)checkToken:(NSDictionary *)param success:(void (^)(WeChatLoginRes *))success failure:(void (^)(NSError *))failure
{
    [self postWithUrl:kWxCheckTokenUrl param:param resultClass:[WeChatLoginRes class] success:success failure:failure];
}
@end
